package org.hry.netty.protobuf;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.util.ReferenceCountUtil;

/**
 * @Desc
 * @Author houry
 * @Date 2021/2/20 15:43
 **/
public class LJServerHandler extends SimpleChannelInboundHandler<Object> {


    @Override
    protected void channelRead0(ChannelHandlerContext ctx, Object msg) throws Exception {

        if (msg instanceof BarrageProto.Barrage) {
            System.out.println("是");
        } else {
            System.out.println("否");
        }
//        、
    }
}
